package com.avic.rong.activity;

import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.avic.rong.BaseActivity;
import com.avic.rong.R;
import com.example.minato.minastore.utils.AppUtils;

import butterknife.BindView;
import butterknife.ButterKnife;

public class StandardServiceActivity extends BaseActivity {

    @BindView(R.id.service_web)
    WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_standard_service);
        ButterKnife.bind(this);

        Intent intent = getIntent();
        int contid = intent.getIntExtra("contid", 0);

        webView.setInitialScale(100);
        WebSettings settings = webView.getSettings();
        // 设置加载进来的页面自适应手机屏幕
        settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);
        settings.setJavaScriptEnabled(true);
        settings.setSupportZoom(false);
        settings.setBuiltInZoomControls(false);
        settings.setDisplayZoomControls(false);
        settings.setUseWideViewPort(true);
        settings.setLoadWithOverviewMode(true);
        webView.loadUrl(AppUtils.BASE_URL + "/content/detailContent?contId=" + contid);
    }

    @Override
    protected int getContentViewId() {
        return 0;
    }

    @Override
    protected void initView() {


    }

    @Override
    protected void addListener() {

    }
}
